package com.gvsoft.log;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * ProjectName:gvMsgRouting
 * Author: zhaoqiubo
 * Date: 15/8/6
 * Time: 上午10:07
 * Desc:
 */
public class Logs {
    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SS");
//    private static Date date = new Date(System.currentTimeMillis());

    public static void info(String str) {
        System.out.println(sdf.format(new Date(System.currentTimeMillis())) + "--<info>:" + str);
    }

    public static void info(String className, String str) {
        System.out.println(sdf.format(new Date(System.currentTimeMillis())) + ":" + className + "--info:" + str);
    }



}
